package com.zhehekeji.opsys.api.entity;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * @ClassName TSigninPicture
 * @Description TODO
 * @author chenweiliu chenwei.liu@163.com
 * @date 2016-7-12   下午3:15:07
 */
@Entity
@Table(name="t_signin_picture")
public class TSigninPicture implements java.io.Serializable {

	/** 
	* @Fields serialVersionUID : TODO
	*/ 
	private static final long serialVersionUID = 5302275477976162001L;
	private Long id;
	private String code;
	private String name;
	private String picture;
	private String profile;
	private Date updateTime;
	private Date createTime = new Date();
	private Integer status;
	private Long cpCode;
	private String aboveTime;
	private Integer epgType;
	private TSignin tsignin;
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="ID",length=20,nullable=false,unique=true)
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	@Column(name="CODE",length=64,nullable=true)
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	@Column(name="NAME",length=128,nullable=true)
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Column(name="PICTURE",length=2014,nullable=true)
	public String getPicture() {
		return picture;
	}
	public void setPicture(String picture) {
		this.picture = picture;
	}
	@Column(name="PROFILE",nullable=true)
	public String getProfile() {
		return profile;
	}
	public void setProfile(String profile) {
		this.profile = profile;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="UPDATE_TIME",nullable=true)
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATE_TIME",nullable=true)
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Column(name="STATUS",length=2,nullable=true)
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	@Column(name="CP_CODE",length=20,nullable=true)
	public Long getCpCode() {
		return cpCode;
	}
	public void setCpCode(Long cpCode) {
		this.cpCode = cpCode;
	}
	@Column(name="ABOVE_TIME",length=20,nullable=true)
	public String getAboveTime() {
		return aboveTime;
	}
	public void setAboveTime(String aboveTime) {
		this.aboveTime = aboveTime;
	}
	@Column(name="EPG_TYPE",length=2,nullable=true)
	public Integer getEpgType() {
		return epgType;
	}
	public void setEpgType(Integer epgType) {
		this.epgType = epgType;
	}
	@ManyToOne(cascade=CascadeType.REFRESH,fetch=FetchType.EAGER,optional=true)
	@JoinColumn(name="SIGNIN_ID")
	public TSignin getTsignin() {
		return tsignin;
	}
	public void setTsignin(TSignin tsignin) {
		this.tsignin = tsignin;
	}
}

